package org.example.shop.vo;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class ApiResponse {
    private int code;
    private String message;
    private Object data;

    public static ApiResponse error(int code,String message)
    {
        return new ApiResponse().setCode(code).setMessage(message);
    }
}
